package com.amigo.online.common.param.dto.pay;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;

@Accessors(chain = true)
@Data
public class CardPayDto {
	@NotNull
	private String paymentId;//支付ID
	@NotNull
	private Long userId;//用户ID
	@NotNull
	private Integer commodityType;//支付类型

	private String info;//支付描述

	@Pattern(regexp="^[1-9][0-9]*000$")
	@NotNull
	private Integer payMoney;//实际付款金额

	@NotNull
	private String pin;	//安全码

	@NotNull
	private String expirationDate;//过期日期

	@NotNull
	private String cardNumber;//卡号

	@NotNull
	private String holder;//持卡人姓名
}
